MessageBoxHandler = function(){};
/**
 * Displays the error message dialog. <br>
 * @param {String} stringMsg The error message to display.
 */
MessageBoxHandler.showErrorBox = function(message) {
    return Ext.MessageBox.show({
    title: 'GREŠKA',
    msg: message,
    buttons: Ext.MessageBox.OK,
    closable: false,
    icon: Ext.MessageBox.ERROR
  });
};
/**
 * Displays the warning message dialog. <br>
 * @param {String} stringMsg The warning message to display.
 */
MessageBoxHandler.showWarningBox = function(message, callback) {
  return Ext.MessageBox.show({
    title: 'Upozorenje',
    msg: message,
    buttons: Ext.MessageBox.OK,
    fn:callback,
    closable: false,
    icon: Ext.MessageBox.WARNING
  });
};

MessageBoxHandler.showInfoBox = function(message, callback) {
      return Ext.MessageBox.show({
        title: 'Obavijest',
        msg: message,
        buttons: Ext.MessageBox.OK,
        fn:callback,
        closable: false,
        icon: Ext.MessageBox.INFO
      });
 };

